/*    */ package com.zimbra.cs.redolog.op;
/*    */ 
/*    */ import com.zimbra.cs.mailbox.MailboxOperation;
/*    */ import com.zimbra.cs.redolog.RedoLogInput;
/*    */ import com.zimbra.cs.redolog.RedoLogOutput;
/*    */ import java.io.IOException;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class BackupMailbox
/*    */   extends RedoableOp
/*    */ {
/*    */   private long mBackupSetTstamp;
/*    */   private long mStartTime;
/*    */   private long mEndTime;
/*    */   private String mLabel;
/*    */   
/*    */   public BackupMailbox()
/*    */   {
/* 51 */     super(MailboxOperation.BackupMailbox);
/*    */   }
/*    */   
/*    */   public BackupMailbox(int mailboxId, long backupSetTstamp, long startTime, long endTime, String label) {
/* 55 */     this();
/* 56 */     setMailboxId(mailboxId);
/* 57 */     this.mBackupSetTstamp = backupSetTstamp;
/* 58 */     this.mStartTime = startTime;
/* 59 */     this.mEndTime = endTime;
/* 60 */     this.mLabel = label;
/*    */   }
/*    */   
/*    */ 
/*    */   public void redo()
/*    */     throws Exception
/*    */   {}
/*    */   
/*    */   protected String getPrintableData()
/*    */   {
/* 70 */     StringBuffer sb = new StringBuffer("backupSetTstamp=");
/* 71 */     sb.append(this.mBackupSetTstamp).append(", startTime=").append(this.mStartTime);
/* 72 */     sb.append(", endTime=").append(this.mEndTime);
/* 73 */     if (this.mLabel != null)
/* 74 */       sb.append("label=\"").append(this.mLabel).append("\"");
/* 75 */     return sb.toString();
/*    */   }
/*    */   
/*    */   protected void serializeData(RedoLogOutput out) throws IOException {
/* 79 */     out.writeLong(this.mBackupSetTstamp);
/* 80 */     out.writeLong(this.mStartTime);
/* 81 */     out.writeLong(this.mEndTime);
/* 82 */     out.writeUTF(this.mLabel != null ? this.mLabel : "");
/*    */   }
/*    */   
/*    */   protected void deserializeData(RedoLogInput in) throws IOException {
/* 86 */     this.mBackupSetTstamp = in.readLong();
/* 87 */     this.mStartTime = in.readLong();
/* 88 */     this.mEndTime = in.readLong();
/* 89 */     this.mLabel = in.readUTF();
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/redolog/op/BackupMailbox.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */